package com.ruoyi.tcm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公告对象 tcm_announcement
 * 
 * @author cong
 * @date 2025-02-07
 */
public class TcmAnnouncement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告主键 */
    private Long id;

    /** 公告标题 */
    @Excel(name = "公告标题")
    private String announcementTitle;

    /** 公告正文 */
    @Excel(name = "公告正文")
    private String announcementContent;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long publisherId;

    /** 发布人姓名 */
    @Excel(name = "发布人姓名")
    private String publishName;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态（0-下线 1-发布） */
    @Excel(name = "状态", readConverterExp = "0=-下线,1=-发布")
    private Integer status;

    /** 0-公告 1-宣传 */
    @Excel(name = "0-公告 1-宣传")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAnnouncementTitle(String announcementTitle) 
    {
        this.announcementTitle = announcementTitle;
    }

    public String getAnnouncementTitle() 
    {
        return announcementTitle;
    }
    public void setAnnouncementContent(String announcementContent) 
    {
        this.announcementContent = announcementContent;
    }

    public String getAnnouncementContent() 
    {
        return announcementContent;
    }
    public void setPublisherId(Long publisherId) 
    {
        this.publisherId = publisherId;
    }

    public Long getPublisherId() 
    {
        return publisherId;
    }
    public void setPublishName(String publishName) 
    {
        this.publishName = publishName;
    }

    public String getPublishName() 
    {
        return publishName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("announcementTitle", getAnnouncementTitle())
            .append("announcementContent", getAnnouncementContent())
            .append("publisherId", getPublisherId())
            .append("publishName", getPublishName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("type", getType())
            .toString();
    }
}
